<template>
  <div>
    <login v-if="!isLogin" />
    <my-info v-if="isLogin" />
  </div>
</template>

<script>
import Login from "@/views/profile/childComps/Login";
import MyInfo from "@/views/profile/childComps/MyInfo";
export default {
  components: { Login, MyInfo },
  computed: {
    isLogin() {
      return this.$store.state.isLogin;
    },
  },
};
</script>
<style scoped>
h1 {
  text-align: center;
  font-size: 40px;
}
</style>
